<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div>
<c:import url="/mc/common/kindeditor/jsp/kingeditorCommon.jsp?module=examp&textareaName=entity.detail"></c:import>

	<form id="infoForm" target="hiddenFrame" action="${path}/mc/organizationsaveInfo" method="post" enctype="multipart/form-data">
		<input type="hidden" name="entity.id" value="${entity.id}" />
		<fieldset style="padding-left: 10px;">
	
			<table>
			  	<tr>
			  		<td>机构名称</td>
			  		<td>
			  			<input type="text" name="entity.name" value="<c:choose><c:when test="${empty entity.name}"></c:when><c:otherwise>${entity.name}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'机构名称不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<%-- <tr>
			  		<td>机构logo</td>
			  		<td>
			  			<input type="file" name="fileLogo" value="<c:choose><c:when test="${empty entity.logo}"></c:when><c:otherwise>${entity.logo}</c:otherwise></c:choose>">
			  			<c:import url="/mc/common/imgPreview.jsp?hidName=entity.logo.id&name=logo.file&imgPath=${entity.logo.id}&picId=${entity.logo.id}&index=1" />
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>机构类型</td>
			  		<td>
			  			<select name="entity.orgType.id" class="searchInputAndSelect" style="width: 120px">
			  				<c:if test="${not empty orgTypeList }">
			  					<c:forEach items="${orgTypeList }" var="orgType">
				  					<option value="${orgType.id }" <c:if test="${orgType.parentId == entity.orgType.id }">selected="selected"</c:if> >${orgType.typeName }</option>
			  					</c:forEach>
			  				</c:if>
			  			</select>
			  		</td>
			  	</tr> --%>
			  	<tr>
			  		<td>联系人姓名</td>
			  		<td>
			  			<input type="text" name="entity.contactPerson" value="<c:choose><c:when test="${empty entity.contactPerson}"></c:when><c:otherwise>${entity.contactPerson}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'联系人姓名不能为空'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>联系人号码</td>
			  		<td>
			  			<input type="text" name="entity.contactNum" value="<c:choose><c:when test="${empty entity.contactNum}"></c:when><c:otherwise>${entity.contactNum}</c:otherwise></c:choose>"
			  				class="{required:true,number:true,messages:{required:'联系人号码不能为空',number:'请输入数字'}}"> 
			  		</td>
			  	</tr>
			  	<tr>
			  		<td>联系地址</td>
			  		<td>
			  			<input type="text" name="entity.contactAddress" value="<c:choose><c:when test="${empty entity.contactAddress}"></c:when><c:otherwise>${entity.contactAddress}</c:otherwise></c:choose>"
			  				class="{required:true,messages:{required:'评论id不能为空'}}"> 
			  		</td>
			  	</tr>
		   </table>
		
		</fieldset>
	</form>
</div>
